package com.ruoyi.place.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.AreaName;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import com.ruoyi.common.core.domain.vo.DutyTcVo;
import com.ruoyi.common.core.domain.vo.IsPlaceInfo;
import lombok.Data;

import java.util.List;


/**
 * 易制毒化学品企业视图对象 place_ezdhxpqy
 *
 * @author xiaohao
 * @date 2023-01-19
 */
@Data
@ExcelIgnoreUnannotated
public class PlaceEzdhxpqyVo implements IsPlaceInfo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long ezdhxpqyId;

    /**
     * 企业名称
     */
    @ExcelProperty(value = "企业名称")
    private String name;

    /**
     * 单位
     */
    @ExcelProperty(value = "单位")
    private String unit;

    @AreaName
    public String getUnitInfo() {
        return unit;
    }

    /**
     * 企业地址
     */
    @ExcelProperty(value = "企业地址")
    private String address;

    /**
     * 账号状态
     */
    @ExcelProperty(value = "账号状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "zhzt")
    private String zhzt;

    /**
     * 冻结/解冻审核状态
     */
    @ExcelProperty(value = "冻结/解冻审核状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "djjdshzt")
    private String djjdshzt;


    @Override
    public Long getPlaceId() {
        return ezdhxpqyId;
    }

    private DutyTcVo dutyTcVo;

    @Override
    public DutyTcVo getTcInfo() {
        return dutyTcVo;
    }

    @Override
    public void setTcInfo(DutyTcVo tcInfo) {
        this.dutyTcVo = tcInfo;
    }

    private List<DutyTcVo> dutyTcVoList;

    @Override
    public List<DutyTcVo> getTcInfoList() {
        return dutyTcVoList;
    }

    @Override
    public void setTcInfoList(List<DutyTcVo> dutyTcVoList) {
        this.dutyTcVoList = dutyTcVoList;
    }
}
